#ifndef UDP_H
#define UDP_H

#include <QObject>
#include <QUdpSocket>
class UDP : public QObject
{
    Q_OBJECT
public:
    explicit UDP(QObject *parent = nullptr);
public slots:
    void write(QByteArray&);
signals:
private:
    QUdpSocket socket;
    QHostAddress target;
    quint16 port = 6123;
};

#endif // UDP_H
